package com.sunwayworld.basemodule.business.sampleprocess.resource.impl;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.basemodule.business.batch.bean.LimsBatchSampleProductBean;
import com.sunwayworld.basemodule.business.sampleprocess.dto.LimsSampleProcessDataSearchDto;
import com.sunwayworld.basemodule.business.sampleprocess.resource.LimsSampleProcessResource;
import com.sunwayworld.basemodule.business.sampleprocess.service.LimsSampleProcessService;
import com.sunwayworld.basemodule.samplemanage.sample.bean.LimsSampleBean;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName LimsSampleProcessResourceImpl
 * @Author zhoujq
 * @Date 2023/4/4
 * @Version 1.0
 **/
@RestController
@GikamBean
public class LimsSampleProcessResourceImpl implements LimsSampleProcessResource {

    @Autowired
    @Lazy
    private LimsSampleProcessService limsSampleProcessService;

    @Override
    public List<LimsSampleBean> selectSampleList(JSONObject rep) {
        return limsSampleProcessService.selectSampleList(rep);
    }

    @Override
    public List<LimsBatchSampleProductBean> selectSampleProductList(LimsSampleProcessDataSearchDto searchDto) {
        return limsSampleProcessService.selectSampleProductList(searchDto);
    }

    @Override
    public JSONObject processSearch3(LimsSampleProcessDataSearchDto searchDto) {
        return limsSampleProcessService.processSearch4(searchDto);
    }
}
